package Work20241116;

/**
 * @author zdl
 * @date 2024/11/16
 */
public class Demo13 {
    public static void main(String[] args) {
        /**                   i   空    *
         *          *         0   5    1
         *         ***        1   4    3
         *        *****       2   3    5
         *       *******      3   2    7
         *      *********     4   1    9
         *     ***********    5   0    11
         */
        for (int i = 0; i < 6; i++) {
            for (int j = 0; j <5-i; j++) {
                System.out.print(" ");
            }
            for (int j = 0; j < 2*i+1; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }

}
